package com.tiny.web.dao;

import com.tiny.web.modal.Ad;
import com.tiny.web.modal.AdExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface AdMapper {

    int countByExample(AdExample example);
    int deleteByExample(AdExample example);
    int deleteByPrimaryKey(Integer id);
    int insert(Ad record);
    int insertSelective(Ad record);
    List<Ad> selectByExample(AdExample example);
    Ad selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Ad record, @Param("example") AdExample example);

    int updateByExample(@Param("record") Ad record, @Param("example") AdExample example);

    int updateByPrimaryKeySelective(Ad record);
    int updateByPrimaryKey(Ad record);
}